import { useState } from 'react'

import './App.css'
import { Outlet, useNavigate } from 'react-router-dom'
import { Button } from 'antd'

function App() {
 
let nav=useNavigate()
  return (
    <>
     <div>
      <Outlet></Outlet>
      <Button onClick={()=>nav('/home')}>首页</Button>
      <Button onClick={()=>nav('/order')}>首页</Button>
      <Button onClick={()=>nav('/index')}>首页</Button>
     </div>
    </>
  )
}

export default App
